/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sunsite.service;

import java.util.List;
import java.util.Map;
import sunsite.po.DownloadHistory;
import sunsite.po.Resource;
import sunsite.po.ResourceCatelog;
import sunsite.po.ResourceType;
import sunsite.tools.Pagination;
/**
 *
 * @author Administrator
 */
public interface FileService {
    List<sunsite.po.Resource> getAllResource();
    List<sunsite.po.ResourceTp> getAllResourceTp();
    ResourceCatelog getResourceCatelog(int catId);
    List<sunsite.po.ResourceCatelog> getAllResourceCatelog();
    List<sunsite.po.ResourceType> getAllResourceType();
    List<sunsite.po.ResourceCatelog> getResourceCatelogList(int tpId);
    List<sunsite.po.ResourceType> getResourceTypeList(int catId);
    ResourceType getResourceType(int typeid);
    void addResourceType(ResourceType resourceType);
    void addResource(Resource resource);
    void modifyResource(Resource resource);
    void addDownloadHistory(DownloadHistory downloadHistory);
    void deleteResource(String resid);
    List<sunsite.po.Resource> getResourceList(Pagination pagination);
    List<Resource> getResourceList(final Pagination pagination,Map map);
    Resource getResource(String resId);
}
